<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Aia_model extends CI_Model {

    function __construct() {
        parent::__construct();
    }

    public function insert_share($data) {
    	$this->db->insert('user_share', $data);
    	return $this->db->insert_id();
    }

    public function get_share_info($id) {
    	$this->db->from('user_share');
    	$this->db->select('*');
    	$this->db->where('id', $id);
    	return $this->db->get()->row_array();
    }

    public function insert_share_friend($data) {
    	$this->db->insert('share_friend', $data);
    }

    public function insert_share_timeline($data) {
    	$this->db->insert('share_timeline', $data);
    }

}
